﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="QuanLy.aspx.cs" Inherits="TemplateH4.Customer.QuanLy"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<title>Trang Quản Lý</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--Thêm vào phần khung và menu--> 
    <div class="extra-img"><img alt="extra-img" src="../images/MasterPage/extra-img.png" class="png"/></div>     
    <div id="nav">
        <ul>
            <li><a href="../Default.aspx">Home</a></li>
            <li><a href="/ThongTinCaNhan.aspx">QUẢN LÝ TT CÁ NHÂN</a></li>
            <li><a href="/Design/ManageDesign.aspx">Quản Lý THIẾT KẾ</a></li>
            <li><a href="QuanLyDonHang.aspx">QUẢN LÝ ĐƠN HÀNG</a></li>
            <li><a href="/ThongTinCaNhan.aspx">XEM ĐIỂM TÍCH LŨY</a></li>
        </ul>
    </div>
    <!-- content -->
    <div id="content">
        <div class="section">
            <!-- box begin -->
            <div class="box">
                <div class="left-top-corner png">
                    <div class="right-top-corner png">
                        <div class="border-top png">
                        </div>
                    </div>
                </div>
                <div class="border-left png">
                    <div class="border-right png">
                        <div class="inside png">                  
<!--Thêm vào phần khung và menu-->      
                        <h2>Trang Quản Lý Dành Cho Khách Hàng</h2>
                        <p>
                            
                        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                        DataKeyNames="UserId" DataSourceID="LinqDataSource1" Height="145px" 
                        Width="703px" CellPadding="4" GridLines="None" ForeColor="#333333" 
                                onpageindexchanging="DetailsView1_PageIndexChanging">
                        <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                            <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
                        <RowStyle BackColor="#EFF3FB" Height="30px" HorizontalAlign="Center" 
                                VerticalAlign="Middle" />
                            <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <Fields>
                            <asp:BoundField DataField="UserId" HeaderText="UserId" ReadOnly="True" 
                                SortExpression="UserId" />
                            <asp:BoundField DataField="MobilePIN" HeaderText="MobilePIN" 
                                SortExpression="MobilePIN" />
                            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                            <asp:BoundField DataField="PasswordQuestion" HeaderText="PasswordQuestion" 
                                SortExpression="PasswordQuestion" />
                            <asp:BoundField DataField="PasswordAnswer" HeaderText="PasswordAnswer" 
                                SortExpression="PasswordAnswer" />
                            <asp:BoundField DataField="DiaChi" HeaderText="DiaChi" 
                                SortExpression="DiaChi" />
                            <asp:BoundField DataField="DTDD" HeaderText="DTDD" SortExpression="DTDD" />
                            <asp:BoundField DataField="Website" HeaderText="Website" 
                                SortExpression="Website" />
                            <asp:BoundField DataField="YahooYM" HeaderText="YahooYM" 
                                SortExpression="YahooYM" />
                            <asp:TemplateField ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="True" 
                                        CommandName="Update" Text="Lưu" />
                                    &nbsp;<asp:Button ID="Button2" runat="server" CausesValidation="False" 
                                        CommandName="Cancel" Text="Hủy" />
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False" 
                                        CommandName="Edit" Text="Sửa thông tin cá nhân" />
                                    <asp:Button ID="Button3" runat="server" PostBackUrl="~/ChangePassword.aspx" 
                                        Text="Đổi mật khẩu" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" Height="50px" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:DetailsView>
                    
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                        ContextTypeName="LinQ_DTO.EFashionDBDataContext" EnableDelete="True" 
                        EnableInsert="True" EnableUpdate="True" TableName="aspnet_Memberships" 
                        Where="UserId == @UserId">
                        <WhereParameters>
                            <asp:SessionParameter DbType="Guid" Name="UserId" SessionField="UserId" />
                        </WhereParameters>
                    </asp:LinqDataSource>
                
                
                
                <br />
                <br />
             
                        </p>
     <!-- Thêm phần khung -->                         
                        </div>
                    </div>
                </div>
                <div class="left-bot-corner png">
                    <div class="right-bot-corner png">
                        <div class="border-bot png">
                        </div>
                    </div>
                </div>
            </div>
            <!-- box end -->
</asp:Content>